//
//  IndicatorAvatarView.m
//  MGameTribe
//
//  Created by 杨敏 on 13-12-26.
//  Copyright (c) 2013年 YangMin. All rights reserved.
//

#import "IndicatorAvatarView.h"
#import "IndicatorButton.h"
#import "Tool.h"

@implementation IndicatorAvatarView


-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.clipsToBounds=YES;
        self.avatarBtn=[IndicatorButton buttonWithType:UIButtonTypeCustom];
        FillButton(self.avatarBtn);
        self.avatarBtn.frame=self.bounds;
        [self addSubview:self.avatarBtn];
        //CALayer *layer = _avatarBtn.layer;
        //layer.cornerRadius = 0.5;
        //layer.masksToBounds = YES;
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
